package pers.lws.erp.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author liuws
 * @since 2020-09-20
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
public class ProcessFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工序id
     */
    @TableId(value = "process_id", type = IdType.INPUT)
    private String processId;

    /**
     * 产品id
     */
    private String productId;

    /**
     * 产品id
     */
    private String productName;

    /**
     * 子工序名称
     */
    private String processName;

    /**
     * 工时
     */
    private Float manHour;

    /**
     * 工时单价
     */
    private BigDecimal unitPrice;

    /**
     * 工时成本小计
     */
    private BigDecimal sumPrice;


    /**
     * 一级分类
     */
    private String firstKindName;

    /**
     *  二级分类
     */
    private String secondKindName;

    /**
     * 三级分类
     */
    private String thirdKindName;

    /**
     *登记时间
     */
    private String registerTime;

    /**
     * 设计人
     */
    private String designName;

    /**
     * 登记人
     */
    private String registerName;

    /**
     * 审核
     */
    private Integer checked;

    /**
     * 组装名字
     */
    private String assembleName;
    /**
     * 组装工时
     */
    private String assembleManHour;
    /**
     * 组装单价
     */
    private String assembleUnitPrice;
    /**
     * 组装总价
     */
    private int assembleSumPrice;
    /**
     * 包装名字
     */
    private String packName;
    /**
     * 包装工时
     */
    private String packManHour;
    /**
     * 包装单价
     */
    private String packUnitPrice;
    /**
     * 包装总价
     */
    private int packSumPrice;


    @Version
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
